import config from '@/config'
import http from '@/utils/request'

export default {
	noticeList: {
		url: `${config.API_URL}/msg/notice/list`,
		name: '获取公告列表',
		get: async function (data = {}) {
			// eslint-disable-next-line no-return-await
			return await http.get(this.url, data)
		}
	},
	noticeAdd: {
		url: `${config.API_URL}/msg/notice/add`,
		name: '新增轮播/公告',
		post: async function (data = {}) {
			// eslint-disable-next-line no-return-await
			return await http.post(this.url, data)
		}
	},
}
